package com.lxk.service.cart.param;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 用户 App - 购物车更新数量
 */
@Data
public class CartUpdateParam {

    @NotNull(message = "编号不能为空")
    private Long id;

    /**
     * 商品数量
     */
    @NotNull(message = "数量不能为空")
    @Min(value = 0, message = "商品数量必须大于等于 0")
    private Integer count;

}
